
package net.qiqbframework.modelling.domain;

import net.qiqbframework.common.ImmutableException;

/**
 * Exception indicating that an aggregate was not compatible with the requirements of the {@link
 * GenericAggregateFactory}.
 *
 */
public class IncompatibleAggregateException extends ImmutableException {


    /**
     * Initialize the exception with given {@code message} and {@code cause}.
     *
     * @param message Message describing the reason the aggregate is not compatible
     * @param cause   The cause
     */
    public IncompatibleAggregateException(String message, Exception cause) {
        super(message, cause);
    }

    /**
     * Initialize the exception with given {@code message}.
     *
     * @param message Message describing the reason the aggregate is not compatible
     */
    public IncompatibleAggregateException(String message) {
        super(message);
    }
}
